Skip to main content
Redhat Developers  Logo
  • AI

    Get started with AI

    • Red Hat AI
      Accelerate the development and deployment of enterprise AI solutions.
    • AI learning hub
      Explore learning materials and tools, organized by task.
    • AI interactive demos
      Click through scenarios with Red Hat AI, including training LLMs and more.
    • AI/ML learning paths
      Expand your OpenShift AI knowledge using these learning resources.
    • AI quickstarts
      Focused AI use cases designed for fast deployment on Red Hat AI platforms.
    • No-cost AI training
      Foundational Red Hat AI training.

    Featured resources

    • OpenShift AI learning
    • Open source AI for developers
    • AI product application development
    • Open source-powered AI/ML for hybrid cloud
    • AI and Node.js cheat sheet

    Red Hat AI Factory with NVIDIA

    • Red Hat AI Factory with NVIDIA is a co-engineered, enterprise-grade AI solution for building, deploying, and managing AI at scale across hybrid cloud environments.
    • Explore the solution
  • Learn

    Self-guided

    • Documentation
      Find answers, get step-by-step guidance, and learn how to use Red Hat products.
    • Learning paths
      Explore curated walkthroughs for common development tasks.
    • Guided learning
      Receive custom learning paths powered by our AI assistant.
    • See all learning

    Hands-on

    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.
    • Interactive labs
      Learn by doing in these hands-on, browser-based experiences.
    • Interactive demos
      Click through product features in these guided tours.

    Browse by topic

    • AI/ML
    • Automation
    • Java
    • Kubernetes
    • Linux
    • See all topics

    Training & certifications

    • Courses and exams
    • Certifications
    • Skills assessments
    • Red Hat Academy
    • Learning subscription
    • Explore training
  • Build

    Get started

    • Red Hat build of Podman Desktop
      A downloadable, local development hub to experiment with our products and builds.
    • Developer Sandbox
      Spin up Red Hat's products and technologies without setup or configuration.

    Download products

    • Access product downloads to start building and testing right away.
    • Red Hat Enterprise Linux
    • Red Hat AI
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Featured

    • Red Hat build of OpenJDK
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat Developer Toolset

    References

    • E-books
    • Documentation
    • Cheat sheets
    • Architecture center
  • Community

    Get involved

    • Events
    • Live AI events
    • Red Hat Summit
    • Red Hat Accelerators
    • Community discussions

    Follow along

    • Articles & blogs
    • Developer newsletter
    • Videos
    • Github

    Get help

    • Customer service
    • Customer support
    • Regional contacts
    • Find a partner

    Join the Red Hat Developer program

    • Download Red Hat products and project builds, access support documentation, learning content, and more.
    • Explore the benefits

DevNation Live Blog: Cryptography: What every application developer needs to know

June 29, 2016
Brian Atkisson
Related topics:
Security

    Cryptography is something that technical folks either get excited over or completely tune out.  There does not seem to be much of a middle ground.  That said, cryptography is such an essential component of modern life that without it, the Internet and many, many companies would crumble.

    To make matters more complicated, cryptography is an area that  is always changing.  Today's modern crypto primitives might be broken before you drink your coffee tomorrow morning.  Look at how quickly POODLE changed the world. Virtually overnight, SSLv3 needed to be disabled across the globe.  Obviously, developers, sysadmins, and other engineers need a basic understanding of cryptographic principles in order to securely develop and run a service in today's world.

    Bruno Oliveira of Red Hat takes us through what developers really need to know for day-to-day development activities.  Bruno works on the KeyCloak team and is very interested in cryptography.

    Security is a multi-facet problem, cryptography is only one aspect of security. Crypto dates back to the Egyptians and is obviously still in use today.  With the dramatic increase in computational power and the decrease in price, strong cryptographic algorithms are a must, regardless of whether people care about it.

    Security is the Jar Jar Binks of software development.

    When security is working correctly, nobody notices. When it fails, everyone is aware of it.  It is really hard to get it right and frankly, documentation tends to suck and is quickly outdated.  Even the crypto professionals mess up and build insecure systems.  In short, crypto is really hard... it is a problem and a solution.

    NEVER WRITE YOUR OWN CRYPTO

    The most common way to implement crypto today is to include the popular cryptographic libraries.  The more widely used, the better. As always, the number one rule of software development security is do not try to implement your own crypto system.

    Some common techniques and recommendations for use in software development

    • Avoid MD5.  Collision attacks are very possible, MD5 should never be used for integrity checking.  Use SHA-2 family message digest algorithms.
    • Check authenticity in addition to message integrity, use HMAC or similar mechanism.
    • Encrypt your data to protect you from man-in-the-middle (MITM) and other attacks, protecting your privacy.
      • AES is most common these days, often combined with CBC or GCM to stream the data across the wire.  Use GCM over CBC for additional integrity checking.
        • Never reuse or hard code the initialization vector (IV). This should always be a random value per session.
      • Never use ECB (never ever never ever).
    • Make use of KDF functions for password validation.
    • Use public key encryption when sharing data with other parties.
      • Key Exchange algorithms allow two parties to securely exchange a symmetric key without transmitting it over the network.
        • RSA
        • Diffe-Hellman
        • ECDHE

    With these simple guidelines, you can begin to include basic cryptographic principles in your code and help to protect your customers.

     

     

    About the Author

    Brian J. Atkisson is a Senior Principal Systems Engineer and the technical lead on the Red Hat IT Identity and Access Management team.  He has 18 years of experience as a Systems Administrator and Systems Engineer, focusing on identity management, virtualization, systems integration, and automation solutions. He is a Red Hat Certified Architect and Engineer, in addition to his academic background in Biochemistry, Microbiology and Philosophy.

     

    Recent Posts

    • Trusted software factory: Building trust in the agentic AI era

    • Build a zero trust AI pipeline with OpenShift and RHEL CVMs

    • Red Hat Hardened Images: Top 5 benefits for software developers

    • How EvalHub manages two-layer Kubernetes control planes

    • Tekton joins the CNCF as an incubating project

    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Build

    • Developer Sandbox
    • Developer tools
    • Interactive tutorials
    • API catalog

    Quicklinks

    • Learning resources
    • E-books
    • Cheat sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site status dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2026 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Chat Support

    Please log in with your Red Hat account to access chat support.