-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Using V 2.0.0 Text file in CentOS 7 do not get decrypted properly - extra 4 bytes at the end of the decrypted file.
Dump of original unencrypted:
od -bc secret1
0000000 164 150 151 163 040 151 163 040 167 150 141 164 040 151 163 040
t h i s i s w h a t i s
0000020 151 156 040 163 145 143 162 145 164 061 012 163 157 155 145 040
i n s e c r e t 1 \n s o m e
0000040 165 160 160 145 162 143 141 163 145 040 101 102 103 040 104 105
u p p e r c a s e A B C D E
0000060 106 040 107 110 111 040 112 113 114 115 040 116 117 120 121 122
F G H I J K L M N O P Q R
0000100 040 123 124 125 040 126 127 040 130 131 132 012 163 157 155 145
S T U V W X Y Z \n s o m e
0000120 040 156 165 155 142 145 162 163 040 061 062 063 040 064 065 066
n u m b e r s 1 2 3 4 5 6
0000140 040 067 070 071 056 061 062 040 055 065 065 065 056 067 070 012
7 8 9 . 1 2 - 5 5 5 . 7 8 \n
0000160 163 157 155 145 040 163 171 155 142 157 154 163 040 044 046 136
s o m e s y m b o l s $ & ^
0000200 045 043 100 041 176 052 050 051 137 053 174 012
% # @ ! ~ * ( ) _ + | \n
Dump of encrypted file:
od -bc secret1.3
0000000 264 256 170 046 111 333 344 227 203 305 174 367 252 142 117 330
264 256 x & I 333 344 227 203 305 | 367 252 b O 330
0000020 241 301 351 307 005 033 211 322 207 022 212 064 377 352 365 254
241 301 351 307 005 033 211 322 207 022 212 4 377 352 365 254
0000040 062 311 032 273 126 242 131 326 256 157 135 265 005 025 222 305
2 311 032 273 V 242 Y 326 256 o ] 265 005 025 222 305
0000060 272 360 275 165 177 357 236 357 030 302 020 235 265 317 242 301
272 360 275 u 177 357 236 357 030 302 020 235 265 317 242 301
0000100 262 236 010 270 144 104 143 060 162 241 334 010 026 000 136 210
262 236 \b 270 d D c 0 r 241 334 \b 026 \0 ^ 210
0000120 203 050 175 347 337 252 323 210 360 365 255 157 143 053 253 345
203 ( } 347 337 252 323 210 360 365 255 o c + 253 345
0000140 336 271 021 115 345 046 016 057 164 135 070 106 322 226 173 170
336 271 021 M 345 & 016 / t ] 8 F 322 226 { x
0000160 225 250 371 161 122 263 032 045 344 107 075 312 030 010 314 232
225 250 371 q R 263 032 % 344 G = 312 030 \b 314 232
0000200 230 054 257 121 121 022 257 013 056 350 335 137 120 314 120 051
230 , 257 Q Q 022 257 \v . 350 335 _ P 314 P )
0000220
Dump of decrypted file:
od -bc secret1
0000000 164 150 151 163 040 151 163 040 167 150 141 164 040 151 163 040
t h i s i s w h a t i s
0000020 151 156 040 163 145 143 162 145 164 061 012 163 157 155 145 040
i n s e c r e t 1 \n s o m e
0000040 165 160 160 145 162 143 141 163 145 040 101 102 103 040 104 105
u p p e r c a s e A B C D E
0000060 106 040 107 110 111 040 112 113 114 115 040 116 117 120 121 122
F G H I J K L M N O P Q R
0000100 040 123 124 125 040 126 127 040 130 131 132 012 163 157 155 145
S T U V W X Y Z \n s o m e
0000120 040 156 165 155 142 145 162 163 040 061 062 063 040 064 065 066
n u m b e r s 1 2 3 4 5 6
0000140 040 067 070 071 056 061 062 040 055 065 065 065 056 067 070 012
7 8 9 . 1 2 - 5 5 5 . 7 8 \n
0000160 163 157 155 145 040 163 171 155 142 157 154 163 040 044 046 136
s o m e s y m b o l s $ & ^
0000200 045 043 100 041 176 052 050 051 137 053 174 012 000 000 000 000
% # @ ! ~ * ( ) _ + | \n \0 \0 \0 \0
0000220
Ran this to encrypt:
tea -ek 'great elephant i' -I secret1 secret2 secret3
rm secret1 secret2 secret3
and this to decrypt
tea -dk 'great elephant i' -I secret1.3
Please advise if I'm doing something wrong or if there will be a fix for this.
Thanks
Will Hanson
willh@earthlink.net