Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • C cryptsetup
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 15
    • Issues 15
    • List
    • Boards
    • Service Desk
    • Milestones
  • Jira
    • Jira
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Jobs
  • Issue Boards
Collapse sidebar

Do not update/delete: Banner broadcast message test data

Do not update/delete: Notification broadcast message test data

  • cryptsetupcryptsetup
  • cryptsetup
  • Issues
  • #312
Closed
Open
Issue created Jan 07, 2017 by username-removed-931307@fisx

Trying to create a key file from passphrase

This is more of a request for support, but I couldn't find this information anywhere and suspect it may be useful for others. I'm happy to patch the docs once I've solved my problem if you like.

I have a volume that I mount with createsetup open (no luks business) and a passphrase, and want to write a script that does that for me without asking for the passphrase. I understand that I can use --key-file, but it shouldn't contain the passphrase, but the key that is derived from the passphrase by cryptsetup.

I have tried openssl rmd160 .backup_passphrase > .backup_key with various modifications (keep just the 40 bits of hex key in there, keep the binary key in there, pad with zeros, pad with repeats of the hash, use sha256), but haven't made the correct guess yet.

Any hint appreciated.

Assignee
Assign to
Time tracking