all repos — min @ 254a83cfaa4af6f704dee4db7d74ed1b3dff7088

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
@test
#test

"crypto" describe

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

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

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

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

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

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

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

  ("test" "test" aes "test" aes strip "test" ==) assert
  
  report
  clear
  "test.txt" rm