mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Remove useless whitespace at end of lines
This commit is contained in:
@ -66,7 +66,7 @@ decode('6b77b4d63006dee605b156e27403979358deb9e7154616d959f1652bd5ff92cc', 'hex'
|
||||
decode('37363534333231204e6f77206973207468652074696d6520666f722000', 'hex'),
|
||||
'bf-cbc'), 'hex');
|
||||
|
||||
-- blowfish-448
|
||||
-- blowfish-448
|
||||
SELECT encode(encrypt(
|
||||
decode('fedcba9876543210', 'hex'),
|
||||
decode('f0e1d2c3b4a5968778695a4b3c2d1e0f001122334455667704689104c2fd3b2f584023641aba61761f1f1f1f0e0e0e0effffffffffffffff', 'hex'),
|
||||
@ -74,11 +74,11 @@ decode('f0e1d2c3b4a5968778695a4b3c2d1e0f001122334455667704689104c2fd3b2f58402364
|
||||
-- result: c04504012e4e1f53
|
||||
|
||||
-- empty data
|
||||
select encode( encrypt('', 'foo', 'bf'), 'hex');
|
||||
select encode(encrypt('', 'foo', 'bf'), 'hex');
|
||||
-- 10 bytes key
|
||||
select encode( encrypt('foo', '0123456789', 'bf'), 'hex');
|
||||
select encode(encrypt('foo', '0123456789', 'bf'), 'hex');
|
||||
-- 22 bytes key
|
||||
select encode( encrypt('foo', '0123456789012345678901', 'bf'), 'hex');
|
||||
select encode(encrypt('foo', '0123456789012345678901', 'bf'), 'hex');
|
||||
|
||||
-- decrypt
|
||||
select decrypt(encrypt('foo', '0123456', 'bf'), '0123456', 'bf');
|
||||
|
@ -11,7 +11,7 @@ INSERT INTO ctest VALUES ('password', '', '');
|
||||
|
||||
UPDATE ctest SET salt = gen_salt('bf', 8);
|
||||
UPDATE ctest SET res = crypt(data, salt);
|
||||
SELECT res = crypt(data, res) AS "worked"
|
||||
SELECT res = crypt(data, res) AS "worked"
|
||||
FROM ctest;
|
||||
|
||||
DROP TABLE ctest;
|
||||
|
@ -44,11 +44,11 @@ decode('000102030405060708090a0b0c0d0e0f101112131415161718191a1b', 'hex'),
|
||||
'aes-cbc'), 'hex');
|
||||
|
||||
-- empty data
|
||||
select encode( encrypt('', 'foo', 'aes'), 'hex');
|
||||
select encode(encrypt('', 'foo', 'aes'), 'hex');
|
||||
-- 10 bytes key
|
||||
select encode( encrypt('foo', '0123456789', 'aes'), 'hex');
|
||||
select encode(encrypt('foo', '0123456789', 'aes'), 'hex');
|
||||
-- 22 bytes key
|
||||
select encode( encrypt('foo', '0123456789012345678901', 'aes'), 'hex');
|
||||
select encode(encrypt('foo', '0123456789012345678901', 'aes'), 'hex');
|
||||
|
||||
-- decrypt
|
||||
select decrypt(encrypt('foo', '0123456', 'aes'), '0123456', 'aes');
|
||||
@ -56,7 +56,7 @@ select decrypt(encrypt('foo', '0123456', 'aes'), '0123456', 'aes');
|
||||
-- iv
|
||||
select encode(encrypt_iv('foo', '0123456', 'abcd', 'aes'), 'hex');
|
||||
select decrypt_iv(decode('2c24cb7da91d6d5699801268b0f5adad', 'hex'),
|
||||
'0123456', 'abcd', 'aes');
|
||||
'0123456', 'abcd', 'aes');
|
||||
|
||||
-- long message
|
||||
select encode(encrypt('Lets try a longer message.', '0123456789', 'aes'), 'hex');
|
||||
|
Reference in New Issue
Block a user