all repos — min @ 42b498ca81a7b737cb57deea30f6812a1deab511

A small but practical concatenative programming language.

tests/crypto.min

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
'min-test require :test
;;;

"crypto" test.describe

  ("test" crypto.md4 "db346d691d7acc4dc2625db19f9e3f52" ==) test.assert

  ("test" crypto.md5 "098f6bcd4621d373cade4e832627b4f6" ==) test.assert

  ("test" crypto.sha1 "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3" ==) test.assert

  ("test" crypto.sha224 "90a3ed9e32b2aaf4c61c410eb925426119e1a9dc53d4286ade99a809" ==) test.assert

  ("test" crypto.sha256 "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08" ==) test.assert

  ("test" crypto.sha384 "768412320f7b0aa5812fce428dc4706b3cae50e02a64caa16a782249bfe8efc4b7ef1ccb126255d196047dfedf17a0a9" ==) test.assert

  ("test" crypto.sha512 "ee26b0dd4af7e749aa1a8ee3c10ae9923f618980772e473f8819a5d4940e0db27ac185f8a0e1d5f84f88bc887fd67b143732c304cc5fa9ad8e6f57f50028a8ff" ==) test.assert

  ("test" crypto.encode crypto.decode "test" ==) test.assert

  ("test" "test" crypto.aes "test" crypto.aes strip "test" ==) test.assert
  
  test.report
  stack.clear