##- # Author: Brian Tiffin # Dedicated to the public domain # # Date: September, 2016 # Modified: 2016-10-03/22:46-0400 ##+ # # crypt.icn, Demonstrate the POSIX crypt function # procedure main() password := "#secretpassword!" salt := "SV" write(image(p := crypt(password, salt))) # input routine would get user password # compare both encrypted values attempt := crypt(password, salt) if attempt == p then write("User verified by password") end