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:
@ -108,7 +108,7 @@ decode('37363534333231204e6f77206973207468652074696d6520666f722000', 'hex'),
|
||||
3ea6357a0ee7fad6d0c4b63464f2aafa40c2e91b4b7e1bba8114932fd92b5c8f111e7e50e7b2e541
|
||||
(1 row)
|
||||
|
||||
-- blowfish-448
|
||||
-- blowfish-448
|
||||
SELECT encode(encrypt(
|
||||
decode('fedcba9876543210', 'hex'),
|
||||
decode('f0e1d2c3b4a5968778695a4b3c2d1e0f001122334455667704689104c2fd3b2f584023641aba61761f1f1f1f0e0e0e0effffffffffffffff', 'hex'),
|
||||
@ -120,21 +120,21 @@ decode('f0e1d2c3b4a5968778695a4b3c2d1e0f001122334455667704689104c2fd3b2f58402364
|
||||
|
||||
-- result: c04504012e4e1f53
|
||||
-- empty data
|
||||
select encode( encrypt('', 'foo', 'bf'), 'hex');
|
||||
select encode(encrypt('', 'foo', 'bf'), 'hex');
|
||||
encode
|
||||
------------------
|
||||
1871949bb2311c8e
|
||||
(1 row)
|
||||
|
||||
-- 10 bytes key
|
||||
select encode( encrypt('foo', '0123456789', 'bf'), 'hex');
|
||||
select encode(encrypt('foo', '0123456789', 'bf'), 'hex');
|
||||
encode
|
||||
------------------
|
||||
42f58af3b2c03f46
|
||||
(1 row)
|
||||
|
||||
-- 22 bytes key
|
||||
select encode( encrypt('foo', '0123456789012345678901', 'bf'), 'hex');
|
||||
select encode(encrypt('foo', '0123456789012345678901', 'bf'), 'hex');
|
||||
encode
|
||||
------------------
|
||||
86ab6f0bc72b5f22
|
||||
|
@ -17,7 +17,7 @@ CREATE TABLE ctest (data text, res text, salt text);
|
||||
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;
|
||||
worked
|
||||
--------
|
||||
|
@ -70,21 +70,21 @@ decode('000102030405060708090a0b0c0d0e0f101112131415161718191a1b', 'hex'),
|
||||
(1 row)
|
||||
|
||||
-- empty data
|
||||
select encode( encrypt('', 'foo', 'aes'), 'hex');
|
||||
select encode(encrypt('', 'foo', 'aes'), 'hex');
|
||||
encode
|
||||
----------------------------------
|
||||
b48cc3338a2eb293b6007ef72c360d48
|
||||
(1 row)
|
||||
|
||||
-- 10 bytes key
|
||||
select encode( encrypt('foo', '0123456789', 'aes'), 'hex');
|
||||
select encode(encrypt('foo', '0123456789', 'aes'), 'hex');
|
||||
encode
|
||||
----------------------------------
|
||||
f397f03d2819b7172b68d0706fda4693
|
||||
(1 row)
|
||||
|
||||
-- 22 bytes key
|
||||
select encode( encrypt('foo', '0123456789012345678901', 'aes'), 'hex');
|
||||
select encode(encrypt('foo', '0123456789012345678901', 'aes'), 'hex');
|
||||
encode
|
||||
----------------------------------
|
||||
5c9db77af02b4678117bcd8a71ae7f53
|
||||
@ -105,7 +105,7 @@ select encode(encrypt_iv('foo', '0123456', 'abcd', 'aes'), 'hex');
|
||||
(1 row)
|
||||
|
||||
select decrypt_iv(decode('2c24cb7da91d6d5699801268b0f5adad', 'hex'),
|
||||
'0123456', 'abcd', 'aes');
|
||||
'0123456', 'abcd', 'aes');
|
||||
decrypt_iv
|
||||
------------
|
||||
foo
|
||||
|
Reference in New Issue
Block a user