Skip to content

joshuaclayton/access-code-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Access Code Example

What?

This demonstrates an example implementation of the concept of access codes, with the following invariants:

  • Access codes are case-insensitive ("ABC", "abc", "AbC", and "abC" are equivalent)
  • Access codes are not equal if the values are blank / empty / nil ("\n", "", " ", and nil are not equivalent to each other or themselves)
  • Access codes should not be susceptible to [timing attacks] when values are compared

Running the Tests

rspec access_code.rb

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages