Changeset 36647 in project


Ignore:
Timestamp:
09/21/18 08:09:09 (3 months ago)
Author:
off_world
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/pbkdf2

    r36645 r36647  
    11== PBKDF2
     2
    23[[toc:]]
    34
    45=== Description
     6
    57Password-Based Key Derivation Function 2 as defined in [[https://tools.ietf.org/html/rfc2898#section-5.2|RFC2898]]
    68
    79=== Author
     10
    811Tobias Heilig <off_world at gmx . de>
    912
    1013=== Repository
     14
    1115[[https://github.com/off-world/pbkdf2]]
    1216
    1317=== Requirements
     18
    1419* [[http://api.call-cc.org/doc/hmac|hmac]]
    1520* [[http://api.call-cc.org/doc/sha1|sha1]]
     
    1924
    2025==== Common Argument Definitions
     26
    2127===== result-type
    2228; {{'string}} : return resulting bytes as a byte-string
     
    3844
    3945==== Procedures
     46
    4047===== pbkdf2-hmac-sha1
    4148<procedure>(pbkdf2-hmac-sha1 password salt count dklen #!optional (result-type 'blob)</procedure>
     
    5158
    5259=== Examples
    53  (use pbkdf2)
     60
     61<enscript highlight=scheme>
     62(use pbkdf2)
    5463 
    55  (pbkdf2-hmac-sha1 "password" "salt" 4096 20)
    56  ;=> #${4b007901b765489abead49d926f721d065a429c1}
    57  
    58  (pbkdf2-hmac-sha1 "password" "salt" 4096 20 'hex)
    59  ;=> "4b007901b765489abead49d926f721d065a429c1"
     64(pbkdf2-hmac-sha1 "password" "salt" 4096 20)
     65;=> #${4b007901b765489abead49d926f721d065a429c1}
     66
     67(pbkdf2-hmac-sha1 "password" "salt" 4096 20 'hex)
     68;=> "4b007901b765489abead49d926f721d065a429c1"
     69</enscript>
    6070
    6171=== License
     72
    6273 Copyright (c) 2018, Tobias Heilig
    6374 All rights reserved.
Note: See TracChangeset for help on using the changeset viewer.