Skip to content

Instantly share code, notes, and snippets.

@poolpOrg
Created February 6, 2018 13:29
Show Gist options
  • Select an option

  • Save poolpOrg/e15cd126617e27380d928e1319d5ae01 to your computer and use it in GitHub Desktop.

Select an option

Save poolpOrg/e15cd126617e27380d928e1319d5ae01 to your computer and use it in GitHub Desktop.
yepchain
#
# Copyright (c) 2018 Gilles Chehade <[email protected]>
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#
import hashlib
import sys
if __name__ == "__main__":
what = sys.argv[1] if len(sys.argv) > 1 else 'yep'
csum, off7 = "0", 0
while True:
print(what, off7, csum)
off7 += 1
csum = hashlib.sha256(csum.encode()).hexdigest()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment