29. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 6/5/2018 10:24:10 AM Central Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

29.1 Files compared

# Location File Last Modified
1 patch_205_build_9.zip\Java\ImagingCommon\main\test\java\gov\va\med\imaging\encryption AesEncryptionTest.java Wed May 30 14:35:22 2018 UTC
2 patch_205_build_9.zip\Java\ImagingCommon\main\test\java\gov\va\med\imaging\encryption AesEncryptionTest.java Fri Jun 1 20:59:06 2018 UTC

29.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 5 140
Changed 4 8
Inserted 0 0
Removed 0 0

29.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

29.4 Active regular expressions

No regular expressions were active.

29.5 Comparison detail

  1   /**
  2    * 
  3     Package:  MAG - Vis tA Imaging
  4     WARNING:  Per VHA D irective 2 004-038, t his routin e should n ot be modi fied.
  5     Date Cre ated: Apr  25, 2012
  6     Site Nam e:  Washin gton OI Fi eld Office , Silver S pring, MD
  7       Developer:     PI I
  8     Descript ion: 
  9  
  10           ;;  +-------- ---------- ---------- ---------- ---------- ---------- ---------- +
  11           ;;  Property  of the US  Government .
  12           ;;  No permis sion to co py or redi stribute t his softwa re is give n.
  13           ;;  Use of un released v ersions of  this soft ware requi res the us er
  14           ;;   to execu te a writt en test ag reement wi th the Vis tA Imaging
  15           ;;   Developm ent Office  of the De partment o f Veterans  Affairs,
  16           ;;   telephon e (301) 73 4-0100.
  17           ;;
  18           ;;  The Food  and Drug A dministrat ion classi fies this  software a s
  19           ;;  a Class I I medical  device.  A s such, it  may not b e changed
  20           ;;  in any wa y.  Modifi cations to  this soft ware may r esult in a n
  21           ;;  adulterat ed medical  device un der 21CFR8 20, the us e of which
  22           ;;  is consid ered to be  a violati on of US F ederal Sta tutes.
  23           ;;  +-------- ---------- ---------- ---------- ---------- ---------- ---------- +
  24  
  25    */
  26   package go v.va.med.i maging.enc ryption;
  27  
  28   import sta tic org.ju nit.Assert .assertEqu als;
  29   import sta tic org.ju nit.Assert .fail;
  30   import gov .va.med.im aging.encr yption.exc eptions.Ae sEncryptio nException ;
  31  
  32   import org .junit.Tes t;
  33  
  34   /**
  35    * @author   PI I
  36    *
  37    */
  38   public cla ss AesEncr yptionTest
  39   {
  40           @T est
  41           pu blic void  testEncryp tion()
  42           {
  43                    try
  44                    {
  45                              testEncryp tion("&A{C LZWKHAA ,  ALUUN A}&B {101364841 }&C{100201 6321V08036 3}&D{RPT^C PRS;TEST.S T-LOUIS.ME D.VA.GOV^2 705^TIU^18 22447^^^^^ ^^^0}&E{99 2}&F{MONSO N , STEVE  }&G{136672 }&H{223334 667}&I{CLE 13}&J{982} &K{VISTA I MAGING VIX ^90e2cca6- 8de1-479e- ba7c-a52ea 5b9028d}&L {http:// URL /VistaWebS vcs/Imagin gExchangeS iteService .asmx}&M{2 001}&O{VW} ");
  46                             testEn cryption(" asdfasdfas dfasfdasfs adfasdfasd fasdfasdlf uhasolfhas uifhao8vhf we398p4htp 23084n9e8n w8p9evn8fs dv");
  47                             testEn cryption(" asdfasdfas dfasf\ndas fsadfasdfa sd dfasdlf uhasolfhas uifhao 8vh fwe398p4ht p23084n9\n e8nw8p9evn 8fsdv\n");
  48                              testEncryp tion("ALUU N A}&B{101 364841}&C{ 1002016321 V080363}&D {RPT^CPRS; TEST.ST-LO UIS.MED.VA .GOV^2705^ TIU^182244 7^^^^^^^^0 }&E{992}&F {MONSON ,  STEVE }&G{ 136672}&H{ 223334667} &I{CLE13}& J{982}&K{V ISTA IMAGI NG VIX^90e 2cca6-8de1 -479e-ba7c -a52ea5b90 28d}&L{htt p:// URL /VistaWebS vcs/Imagin gExchangeS iteService .asmx}&M{2 001}&O{VW} &P{df-2249 5334-t}");
  49                             testEn cryption(" RIPPLE,FUD GE||234||0 00-00-0001 ||Salt Lak e City||66 0||~1XWBAS 139-574184 _1||boatin g1||boatin g99!");
  50                             testEn cryption(" PROVIDER,O NE||1024|| 000-00-003 4||Ann Arb or||530||~ 1XWBAS34-5 74814_2||f udge||1fud ge.");
  51                             testEn cryption(" TECHNOLOGI ST,TWOEIGH TTHREE||53 ||000-00-0 283||Salt  Lake City| |660||~1XW BAS139-744 184_1||abc 123||abc12 3!!");
  52                             
  53                             
  54                    }
  55                    catc h(Exceptio n ex)
  56                    {
  57                             fail(e x.getMessa ge());
  58                    }
  59           }
  60           
  61           
  62           pr ivate void  testEncry ption(Stri ng clearTe xt)
  63           th rows Excep tion
  64           {
  65                    Stri ng encrypt ed = AesEn cryption.e ncrypt(cle arText);
  66                    Syst em.out.pri ntln(encry pted);
  67                    if(e ncrypted.c ontains("/ ") || encr ypted.cont ains("+")) {
  68                             fail(" Wrong Base 64 alphabe t.");
  69                    }
  70                    Stri ng decrypt ed = AesEn cryption.d ecodeByteA rray(encry pted);
  71                    asse rtEquals(c learText,  decrypted) ;
  72           }
  73  
  74   }