Changeset 38058 in project


Ignore:
Timestamp:
01/05/20 18:28:15 (3 weeks ago)
Author:
sjamaan
Message:

Add crypt eggdoc to C5 subdir

File:
1 copied

Legend:

Unmodified
Added
Removed
  • wiki/eggref/5/crypt

    r38050 r38058  
    2121
    2222<enscript highlight="scheme">
    23 (use crypt)
     23(import crypt)
    2424
    2525(crypt "password") => "$2a$12$eeOD.RHX7kex47wGOu3ZVu2JhRyQBBOyORhd/mTWjQghMWbrxGNCy"
     
    3131
    3232<enscript highlight="scheme">
    33 (use crypt)
     33(import crypt)
    3434
    3535(crypt "password" (crypt-gensalt type: 'sha512))
     
    4242
    4343<enscript highlight="scheme">
    44 (use crypt)
     44(import crypt)
    4545
    4646(define h "$2a$12$eeOD.RHX7kex47wGOu3ZVu2JhRyQBBOyORhd/mTWjQghMWbrxGNCy")
     
    177177The maximum may also be {{#f}} if there is no upper bound.
    178178
    179 Defaults to {{crypt-maximum-random-u8vector}}.  If security is very
    180 important, you should probably override it, because the default
    181 [[/man/4/Unit extras#random|random]] procedure provided by Chicken is
    182 not very strong, and is even extremely weak on some platforms.
     179Defaults to {{crypt-maximum-random-u8vector}}, which uses the
     180[[Module (chicken%20random)#pseudo-random-integer|pseudo-random-integer]]
     181procedure which is provided by the CHICKEN {{(chicken random)}} module.
     182This is relatively strong, so you no longer need to override it for
     183security reasons (in CHICKEN 4 this used to be necessary).
    183184
    184185===== Utility procedures
     
    203204
    204205The initial value of {{crypt-default-random-u8vector}}.  This procedure
    205 simply calls Chicken's built-in [[/man/4/Unit extras#random|random]] to
    206 get enough values between 0 and 255 to fill the u8vector.  It will use
     206simply calls Chicken's built-in [[Module (chicken%20random)#pseudo-random-integer|pseudo-random-integer]]
     207to get enough values between 0 and 255 to fill the u8vector.  It will use
    207208the maximum length if available, otherwise the minimum length (this may
    208209change later).
     
    347348=== Changelog
    348349
     350* 1.0 Port to CHICKEN 5
    349351* 0.4.3 Fix compilation for Android: {{crypt()}} is part of libc, just like in OpenBSD (thanks to Kristian Lein-Mathisen)
    350352* 0.4.2 Fix compilation on OpenBSD: {{crypt()}} is part of libc there (reported by "pcoutin" on IRC)
Note: See TracChangeset for help on using the changeset viewer.