You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

doc.go 1.0KB

123456789101112131415161718192021222324
  1. // Copyright 2018 by David A. Golden. All rights reserved.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License"); you may
  4. // not use this file except in compliance with the License. You may obtain
  5. // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
  6. // Package scram provides client and server implementations of the Salted
  7. // Challenge Response Authentication Mechanism (SCRAM) described in RFC-5802
  8. // and RFC-7677.
  9. //
  10. // Usage
  11. //
  12. // The scram package provides two variables, `SHA1` and `SHA256`, that are
  13. // used to construct Client or Server objects.
  14. //
  15. // clientSHA1, err := scram.SHA1.NewClient(username, password, authID)
  16. // clientSHA256, err := scram.SHA256.NewClient(username, password, authID)
  17. //
  18. // serverSHA1, err := scram.SHA1.NewServer(credentialLookupFcn)
  19. // serverSHA256, err := scram.SHA256.NewServer(credentialLookupFcn)
  20. //
  21. // These objects are used to construct ClientConversation or
  22. // ServerConversation objects that are used to carry out authentication.
  23. package scram