md5.slt 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # Copyright 1994, Regents of the University of California.
  2. # Copyright 1996-2020 PostgreSQL Global Development Group.
  3. # Copyright Materialize, Inc. and contributors. All rights reserved.
  4. #
  5. # Use of this software is governed by the Business Source License
  6. # included in the LICENSE file at the root of this repository.
  7. #
  8. # As of the Change Date specified in that file, in accordance with
  9. # the Business Source License, use of this software will be governed
  10. # by the Apache License, Version 2.0.
  11. #
  12. # This file is derived from the regression test suite in PostgreSQL.
  13. # The original file was retrieved on December 14, 2020 from:
  14. #
  15. # https://github.com/postgres/postgres/blob/9b584953e7bf91e342af87ef44606acd6206cd1c/contrib/pgcrypto/expected/md5.out
  16. #
  17. # The original source code is subject to the terms of the PostgreSQL
  18. # license, a copy of which can be found in the LICENSE file at the
  19. # root of this repository
  20. query T
  21. SELECT digest('', 'md5')::text
  22. ----
  23. \xd41d8cd98f00b204e9800998ecf8427e
  24. query T
  25. SELECT digest(''::bytea, 'md5')::text
  26. ----
  27. \xd41d8cd98f00b204e9800998ecf8427e
  28. query T
  29. SELECT digest('a', 'md5')::text
  30. ----
  31. \x0cc175b9c0f1b6a831c399e269772661
  32. query T
  33. SELECT digest('abc', 'md5')::text
  34. ----
  35. \x900150983cd24fb0d6963f7d28e17f72
  36. query T
  37. SELECT digest('message digest', 'md5')::text
  38. ----
  39. \xf96b697d7cb7938d525a2f31aaf161d0
  40. query T
  41. SELECT digest('abcdefghijklmnopqrstuvwxyz', 'md5')::text
  42. ----
  43. \xc3fcd3d76192e4007dfb496cca67e13b
  44. query T
  45. SELECT digest('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789', 'md5')::text
  46. ----
  47. \xd174ab98d277d9f5a5611c2c9f419d9f
  48. query T
  49. SELECT digest('12345678901234567890123456789012345678901234567890123456789012345678901234567890', 'md5')::text
  50. ----
  51. \x57edf4a22be3c955ac49da2e2107b67a