forked from aniani/vim
Problem: Encryption implementation is messy. Blowfish encryption has a
weakness.
Solution: Refactor the encryption, store the state in an allocated struct
instead of using a save/restore mechanism. Introduce the
"blowfish2" method, which does not have the weakness and encrypts
the whole undo file. (largely by David Leadbeater)
16 lines
416 B
Plaintext
16 lines
416 B
Plaintext
01234567890123456789012345678901234567
|
|
line 2 foo bar blah
|
|
line 3 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
OK 01234567890123456789012345678901234567
|
|
OK line 2 foo bar blah
|
|
OK line 3 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
OK OK 01234567890123456789012345678901234567
|
|
OK OK line 2 foo bar blah
|
|
OK OK line 3 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
1234567890
|
|
aábbccddeëff
|
|
asdfasdfasdf
|
|
0001112223333
|
|
abcdefghijklmnopqrstuvwxyz
|
|
!@#$%^&*()_+=-`~
|