René's URL Explorer Experiment


Title: java - Encryption/decryption fails - Stack Overflow

X Title: Encryption/decryption fails

X Description: I have a helper class AES encrypting/decrypting a String which is mostly a clone of the code provided in Baeldung AES encryption example The code looks as follows: import java.security.

Opengraph URL: https://stackoverflow.com/questions/75260818/encryption-decryption-fails

direct link

Domain: stackoverflow.com


Hey, it has json ld scripts:
    {
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "WebSite",
      "@id": "https://stackoverflow.com/#website",
      "name": "Stack Overflow",
      "url": "https://stackoverflow.com",
      "image": "https://stackoverflow.com/Content/Sites/stackoverflow/Img/apple-touch-icon@2.png?v=73d79a89bded",
      "publisher": {
        "@id": "https://stackoverflow.com/#organization"
      }
    },
    {
      "@type": "Organization",
      "@id": "https://stackoverflow.com/#organization",
      "name": "Stack Overflow",
      "url": "https://stackoverflow.com",
      "logo": "https://stackoverflow.com/Content/Sites/stackoverflow/Img/logo.png?v=e47b208316da",
      "sameAs": [
        "https://stackoverflow.co/",
        "https://www.facebook.com/officialstackoverflow/",
        "https://x.com/stackoverflow",
        "https://www.linkedin.com/company/stack-overflow",
        "https://www.youtube.com/c/StackOverflowOfficial",
        "https://twitter.com/stackoverflow"
      ],
      "contactPoint": [
        {
          "@type": "ContactPoint",
          "contactType": "Customer support",
          "url": "https://stackoverflow.com/contact"
        },
        {
          "@type": "ContactPoint",
          "contactType": "Stack Ads",
          "url": "https://stackoverflow.co/advertising/"
        },
        {
          "@type": "ContactPoint",
          "contactType": "Stack Internal",
          "url": "https://stackoverflow.co/teams/"
        },
        {
          "@type": "ContactPoint",
          "contactType": "Stack Data Licensing",
          "url": "https://stackoverflow.co/api-solutions/"
        }
      ],
      "description": "Q\u0026A for professional and enthusiast programmers"
    }
  ]
}

og:typewebsite
og:site_nameStack Overflow
og:imagehttps://stackoverflow.com/Content/Sites/stackoverflow/Img/apple-touch-icon@2.png?v=73d79a89bded
twitter:cardsummary
twitter:domainstackoverflow.com
NoneWolfiG

Links:

Skip to main contenthttps://stackoverflow.com/a/75302791#content
https://stackoverflow.com/a/75302791
Stack Overflow https://stackoverflow.com
About https://stackoverflow.co/
For Teams https://stackoverflow.co/internal/
Stack Internal Implement a knowledge platform layer to power your enterprise and AI tools. https://stackoverflow.co/internal/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=stack-overflow-for-teams
Stack Data Licensing Get access to top-class technical expertise with trusted & attributed content. https://stackoverflow.co/data-licensing/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=overflow-api
Stack Ads Connect your brand to the world’s most trusted technologist communities. https://stackoverflow.co/advertising/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=stack-overflow-advertising
Releases Keep up-to-date on features we add to Stack Overflow and Stack Internal. https://stackoverflow.blog/releases/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=releases
About the companyhttps://stackoverflow.co/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=about-the-company
Visit the bloghttps://stackoverflow.blog/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=blog
current communityhttps://stackoverflow.com
Stack Overflow https://stackoverflow.com
helphttps://stackoverflow.com/help
chathttps://chat.stackoverflow.com/?tab=explore
Meta Stack Overflow https://meta.stackoverflow.com
Sign uphttps://stackoverflow.com/users/signup?ssrc=site_switcher&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f75260818%2fencryption-decryption-fails%2f75302791
log inhttps://stackoverflow.com/users/login?ssrc=site_switcher&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f75260818%2fencryption-decryption-fails%2f75302791
more stack exchange communitieshttps://stackexchange.com/sites
company bloghttps://stackoverflow.blog
Log inhttps://stackoverflow.com/users/login?ssrc=head&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f75260818%2fencryption-decryption-fails%2f75302791
Sign uphttps://stackoverflow.com/users/signup?ssrc=head&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f75260818%2fencryption-decryption-fails%2f75302791
Home https://stackoverflow.com/
Questions https://stackoverflow.com/questions
AI Assist https://stackoverflow.com/ai-assist
Tags https://stackoverflow.com/tags
Challenges https://stackoverflow.com/beta/challenges
Chat https://chat.stackoverflow.com/?tab=explore
Articles https://stackoverflow.blog/contributed?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=so-blog&utm_content=experiment-articles
Users https://stackoverflow.com/users
Jobs https://stackoverflow.com/jobs?source=so-left-nav
Companies https://stackoverflow.com/jobs/companies?so_medium=stackoverflow&so_source=SiteNav
Collectives javascript:void(0)
Explore all Collectiveshttps://stackoverflow.com/collectives-all
Try for freehttps://stackoverflowteams.com/teams/create/free/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams
Learn morehttps://stackoverflow.co/internal/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams
Stack Internal javascript:void(0)
Learn morehttps://stackoverflow.co/internal/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams-compact
Learn more about Collectives https://stackoverflow.com/collectives
Explore Stack Internal https://stackoverflow.co/internal/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams-compact-popover
Encryption/decryption failshttps://stackoverflow.com/questions/75260818/encryption-decryption-fails
Ask Question https://stackoverflow.com/questions/ask
2 years, 2 months agohttps://stackoverflow.com/a/75302791?lastactivity
https://stackoverflow.com/posts/75260818/timeline
Baeldung AES encryption examplehttps://www.baeldung.com/java-aes-encryption-decryption
javahttps://stackoverflow.com/questions/tagged/java
encryptionhttps://stackoverflow.com/questions/tagged/encryption
aeshttps://stackoverflow.com/questions/tagged/aes
encryption-symmetrichttps://stackoverflow.com/questions/tagged/encryption-symmetric
pbkdf2https://stackoverflow.com/questions/tagged/pbkdf2
Sharehttps://stackoverflow.com/q/75260818
Improve this questionhttps://stackoverflow.com/posts/75260818/edit
edited Jan 31, 2023 at 22:25https://stackoverflow.com/posts/75260818/revisions
https://stackoverflow.com/users/9917714/aleksa-majkic
Aleksa Majkichttps://stackoverflow.com/users/9917714/aleksa-majkic
https://stackoverflow.com/users/1552080/wolfig
WolfiGhttps://stackoverflow.com/users/1552080/wolfig
Topacohttps://stackoverflow.com/users/9014097/topaco
Add a comment https://stackoverflow.com/a/75302791
https://stackoverflow.com/a/75302791
Reset to default https://stackoverflow.com/questions/75260818/encryption-decryption-fails?answertab=scoredesc#tab-top
https://stackoverflow.com/posts/75302791/timeline
NISThttps://www.nist.gov
Sharehttps://stackoverflow.com/a/75302791
Improve this answerhttps://stackoverflow.com/posts/75302791/edit
edited Nov 26, 2023 at 15:05https://stackoverflow.com/posts/75302791/revisions
https://stackoverflow.com/users/9917714/aleksa-majkic
Aleksa Majkichttps://stackoverflow.com/users/9917714/aleksa-majkic
https://stackoverflow.com/posts/75285369/timeline
Sharehttps://stackoverflow.com/a/75285369
Improve this answerhttps://stackoverflow.com/posts/75285369/edit
https://stackoverflow.com/users/1552080/wolfig
WolfiGhttps://stackoverflow.com/users/1552080/wolfig
https://stackoverflow.com/users/9917714/aleksa-majkic
Aleksa Majkichttps://stackoverflow.com/users/9917714/aleksa-majkic
Over a year agohttps://stackoverflow.com/a/75302791#comment132874811_75285369
https://stackoverflow.com/a/75302791
tips on writing great answershttps://stackoverflow.com/help/how-to-answer
log inhttps://stackoverflow.com/users/login?ssrc=question_page&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f75260818%2fencryption-decryption-fails%23new-answer
terms of servicehttps://stackoverflow.com/legal/terms-of-service/public
privacy policyhttps://stackoverflow.com/legal/privacy-policy
Ask questionhttps://stackoverflow.com/questions/ask
javahttps://stackoverflow.com/questions/tagged/java
encryptionhttps://stackoverflow.com/questions/tagged/encryption
aeshttps://stackoverflow.com/questions/tagged/aes
encryption-symmetrichttps://stackoverflow.com/questions/tagged/encryption-symmetric
pbkdf2https://stackoverflow.com/questions/tagged/pbkdf2
How everyone and anyone can use AI for goodhttps://stackoverflow.blog/2026/02/12/how-everyone-and-anyone-can-use-ai-for-good/
Even your voice is a data problemhttps://stackoverflow.blog/2026/02/13/even-your-voice-is-a-data-problem/
Results of the January 2026 Community Asks Sprint: Community Badgeshttps://meta.stackexchange.com/questions/417043/results-of-the-january-2026-community-asks-sprint-community-badges
All users on Stack Exchange can now participate in chathttps://meta.stackexchange.com/questions/417109/all-users-on-stack-exchange-can-now-participate-in-chat
Policy: Generative AI (e.g., ChatGPT) is bannedhttps://meta.stackoverflow.com/questions/421831/policy-generative-ai-e-g-chatgpt-is-banned
20 https://stackoverflow.com/questions/16676727/extracting-hyperlinks-from-excel-xlsx-with-python
Extracting Hyperlinks From Excel (.xlsx) with Pythonhttps://stackoverflow.com/questions/16676727/extracting-hyperlinks-from-excel-xlsx-with-python
1 https://stackoverflow.com/questions/24515181/error-when-using-python-to-create-hyperlink-within-a-worksheet-in-excel
Error when using Python to create hyperlink within a worksheet in Excelhttps://stackoverflow.com/questions/24515181/error-when-using-python-to-create-hyperlink-within-a-worksheet-in-excel
24 https://stackoverflow.com/questions/31820069/add-hyperlink-to-excel-sheet-created-by-pandas-dataframe-to-excel-method
add hyperlink to excel sheet created by pandas dataframe to_excel methodhttps://stackoverflow.com/questions/31820069/add-hyperlink-to-excel-sheet-created-by-pandas-dataframe-to-excel-method
30 https://stackoverflow.com/questions/39077661/adding-hyperlinks-in-some-cells-openpyxl
adding hyperlinks in some cells openpyxlhttps://stackoverflow.com/questions/39077661/adding-hyperlinks-in-some-cells-openpyxl
0 https://stackoverflow.com/questions/39791441/create-excel-hyperlinks-in-python
Create Excel Hyperlinks in Pythonhttps://stackoverflow.com/questions/39791441/create-excel-hyperlinks-in-python
1 https://stackoverflow.com/questions/48489893/ouputting-clickable-hyperlinks-to-a-spreadsheet-with-python-pandas-to-excel
Ouputting (clickable) hyperlinks to a spreadsheet with Python pandas.to_excel()https://stackoverflow.com/questions/48489893/ouputting-clickable-hyperlinks-to-a-spreadsheet-with-python-pandas-to-excel
2 https://stackoverflow.com/questions/50895468/create-hyperlink-for-accessing-multiple-excel-sheets-by-python
Create hyperlink for accessing Multiple excel sheets by pythonhttps://stackoverflow.com/questions/50895468/create-hyperlink-for-accessing-multiple-excel-sheets-by-python
4 https://stackoverflow.com/questions/55352968/add-hyperlink-to-excel-sheet-with-pandas-which-references-to-a-another-sheet
add hyperlink to excel sheet with pandas, which references to a another sheethttps://stackoverflow.com/questions/55352968/add-hyperlink-to-excel-sheet-with-pandas-which-references-to-a-another-sheet
1 https://stackoverflow.com/questions/56445393/hyperlink-in-pandas-dataframe-to-excel
hyperlink in pandas (dataframe to excel)https://stackoverflow.com/questions/56445393/hyperlink-in-pandas-dataframe-to-excel
1 https://stackoverflow.com/questions/63821718/add-hyperlink-to-excel-csv-file-in-python
Add Hyperlink to Excel csv file in pythonhttps://stackoverflow.com/questions/63821718/add-hyperlink-to-excel-csv-file-in-python
Hot Network Questions https://stackexchange.com/questions?tab=hot
LaTeX macro for typesetting AVMs and distance between AVM and text + typing https://tex.stackexchange.com/questions/759737/latex-macro-for-typesetting-avms-and-distance-between-avm-and-text-typing
Is my system running PulseAudio or PipeWire for audio? https://unix.stackexchange.com/questions/804455/is-my-system-running-pulseaudio-or-pipewire-for-audio
Recreational question about image processing https://mathematica.stackexchange.com/questions/318744/recreational-question-about-image-processing
How do plasticizers work? https://chemistry.stackexchange.com/questions/195018/how-do-plasticizers-work
Publix sells cheeses and cooking oils https://ell.stackexchange.com/questions/373979/publix-sells-cheeses-and-cooking-oils
What is the best translation for the term hypostasis (ὑπόστασις, 5287)? https://hermeneutics.stackexchange.com/questions/114791/what-is-the-best-translation-for-the-term-hypostasis-%e1%bd%91%cf%80%cf%8c%cf%83%cf%84%ce%b1%cf%83%ce%b9%cf%82-5287
In Orgmode, what does the #+ character combination mean? https://emacs.stackexchange.com/questions/85497/in-orgmode-what-does-the-character-combination-mean
When do we need the Update[] function? https://mathematica.stackexchange.com/questions/318748/when-do-we-need-the-update-function
How does someone present a paper for peer review if they're not part of an institution? https://academia.stackexchange.com/questions/225928/how-does-someone-present-a-paper-for-peer-review-if-theyre-not-part-of-an-insti
Where do we stop vetting people in the presidential line of succession for eligibility to be president? https://politics.stackexchange.com/questions/94231/where-do-we-stop-vetting-people-in-the-presidential-line-of-succession-for-eligi
Refusing authorship on a paper I consider scientifically unsound https://academia.stackexchange.com/questions/225954/refusing-authorship-on-a-paper-i-consider-scientifically-unsound
Why do people invest in a preferred stock when the sales terms are not profitable? https://money.stackexchange.com/questions/169276/why-do-people-invest-in-a-preferred-stock-when-the-sales-terms-are-not-profitabl
Induction Stove How to stop high pitch painful ringing during use? https://cooking.stackexchange.com/questions/136715/induction-stove-how-to-stop-high-pitch-painful-ringing-during-use
Wilfrid Hodges vs. Anselm's argument https://philosophy.stackexchange.com/questions/136249/wilfrid-hodges-vs-anselms-argument
Was "cope" as a single-word response commonly used to mean "deal with it" pre-internet? https://english.stackexchange.com/questions/638997/was-cope-as-a-single-word-response-commonly-used-to-mean-deal-with-it-pre-in
Xenix: how to avoid ctrl+d on every boot? https://retrocomputing.stackexchange.com/questions/32472/xenix-how-to-avoid-ctrld-on-every-boot
How to generate a matrix with every offset of vector without using a for loop https://stackoverflow.com/questions/79888961/how-to-generate-a-matrix-with-every-offset-of-vector-without-using-a-for-loop
Does the brain-consciousness link (presumed for this question at least) support foundherentism? https://philosophy.stackexchange.com/questions/136298/does-the-brain-consciousness-link-presumed-for-this-question-at-least-support
Some books recommendation by which I can know about what's happening in current mathematics research in Pure mathematics? https://mathoverflow.net/questions/508141/some-books-recommendation-by-which-i-can-know-about-whats-happening-in-current
Short story (1970s): Telepathic planetarian thinks a person's thoughts are delusional, kills him, recognizes his error in the visible spaceship https://scifi.stackexchange.com/questions/303286/short-story-1970s-telepathic-planetarian-thinks-a-persons-thoughts-are-delus
Neighbouring geodesics in a hyperbolic group with more than one end https://mathoverflow.net/questions/508129/neighbouring-geodesics-in-a-hyperbolic-group-with-more-than-one-end
GM Data Sharing https://mechanics.stackexchange.com/questions/101936/gm-data-sharing
Flyback converter secondary oscillations https://electronics.stackexchange.com/questions/765837/flyback-converter-secondary-oscillations
Do bilateral continued fractions appear in mathematical research? https://math.stackexchange.com/questions/5124549/do-bilateral-continued-fractions-appear-in-mathematical-research
more hot questions https://stackoverflow.com/a/75302791
Question feed https://stackoverflow.com/feeds/question/75260818
https://stackoverflow.com/a/75302791
https://stackoverflow.com
Stack Overflowhttps://stackoverflow.com
Questionshttps://stackoverflow.com/questions
Helphttps://stackoverflow.com/help
Chathttps://chat.stackoverflow.com/?tab=explore
Businesshttps://stackoverflow.co/
Stack Internalhttps://stackoverflow.co/internal/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=teams
Stack Data Licensinghttps://stackoverflow.co/data-licensing/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=data-licensing
Stack Adshttps://stackoverflow.co/advertising/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=advertising
Companyhttps://stackoverflow.co/
Abouthttps://stackoverflow.co/
Presshttps://stackoverflow.co/company/press/
Work Herehttps://stackoverflow.co/company/work-here/
Legalhttps://stackoverflow.com/legal
Privacy Policyhttps://stackoverflow.com/legal/privacy-policy
Terms of Servicehttps://stackoverflow.com/legal/terms-of-service/public
Contact Ushttps://stackoverflow.com/contact
Cookie Policyhttps://policies.stackoverflow.co/stack-overflow/cookie-policy
Stack Exchange Networkhttps://stackexchange.com
Technology https://stackexchange.com/sites#technology
Culture & recreation https://stackexchange.com/sites#culturerecreation
Life & arts https://stackexchange.com/sites#lifearts
Science https://stackexchange.com/sites#science
Professional https://stackexchange.com/sites#professional
Business https://stackexchange.com/sites#business
API https://api.stackexchange.com/
Data https://data.stackexchange.com/
Bloghttps://stackoverflow.blog?blb=1
Facebookhttps://www.facebook.com/officialstackoverflow/
Twitterhttps://twitter.com/stackoverflow
LinkedInhttps://linkedin.com/company/stack-overflow
Instagramhttps://www.instagram.com/thestackoverflow
CC BY-SAhttps://stackoverflow.com/help/licensing

Viewport: width=device-width, height=device-height, initial-scale=1.0, minimum-scale=1.0


URLs of crawlers that visited me.